package mapgen.pane{

import org.aswing.*;
import org.aswing.border.*;
import org.aswing.geom.*;
import org.aswing.colorchooser.*;
import org.aswing.ext.*;

/**
 * MyPane
 */
public class MyPane extends JPanel{
	
	//members define
	private var panel48:JPanel;
	private var panel9:JPanel;
	private var tf:JTextField;
	private var btn:JButton;
	private var separator17:JSeparator;
	private var label18:JLabel;
	private var panel3:JPanel;
	private var scrollpane19:JScrollPane;
	private var ta:JTextArea;
	private var panel21:JPanel;
	private var label22:JLabel;
	private var label23:JLabel;
	private var panel49:JPanel;
	private var panel51:JPanel;
	private var tfIn:JTextField;
	private var btnIn:JButton;
	private var panel52:JPanel;
	private var scrollpane57:JScrollPane;
	private var taIn:JTextArea;
	private var panel53:JPanel;
	
	/**
	 * MyPane Constructor
	 */
	public function MyPane(){
		//component creation
		setOpaque(true);
		setForeground(new ASColor(0xcccccc, 1));
		setSize(new IntDimension(1000, 600));
		setPreferredSize(new IntDimension(1000, 600));
		var layout0:BoxLayout = new BoxLayout();
		layout0.setAxis(AsWingConstants.HORIZONTAL);
		layout0.setGap(10);
		setLayout(layout0);
		
		panel48 = new JPanel();
		panel48.setLocation(new IntPoint(0, 0));
		panel48.setSize(new IntDimension(500, 600));
		var border1:TitledBorder = new TitledBorder();
		border1.setColor(new ASColor(0x0, 1));
		border1.setTitle("地图数据输出");
		border1.setPosition(1);
		border1.setBeveled(true);
		border1.setRound(8);
		panel48.setBorder(border1);
		var layout2:BorderLayout = new BorderLayout();
		layout2.setHgap(8);
		layout2.setVgap(8);
		panel48.setLayout(layout2);
		
		panel9 = new JPanel();
		panel9.setSize(new IntDimension(600, 59));
		panel9.setConstraints("North");
		var border3:TitledBorder = new TitledBorder();
		border3.setColor(new ASColor(0x0, 1));
		border3.setTitle("文件地址");
		border3.setPosition(1);
		border3.setAlign(AsWingConstants.LEFT);
		border3.setBeveled(true);
		border3.setRound(8);
		panel9.setBorder(border3);
		
		tf = new JTextField();
		tf.setLocation(new IntPoint(41, 5));
		tf.setSize(new IntDimension(168, 21));
		tf.setColumns(20);
		
		btn = new JButton();
		btn.setLocation(new IntPoint(183, 27));
		btn.setSize(new IntDimension(33, 22));
		btn.setText("输出");
		
		separator17 = new JSeparator();
		separator17.setLocation(new IntPoint(301, 28));
		separator17.setSize(new IntDimension(2, 20));
		separator17.setPreferredSize(new IntDimension(2, 20));
		separator17.setOrientation(AsWingConstants.VERTICAL);
		
		label18 = new JLabel();
		label18.setForeground(new ASColor(0xcc0000, 1));
		label18.setLocation(new IntPoint(308, 29));
		label18.setSize(new IntDimension(105, 17));
		label18.setText("地图拼块的swf文件");
		label18.setHorizontalAlignment(AsWingConstants.LEFT);
		
		panel3 = new JPanel();
		panel3.setSize(new IntDimension(600, 600));
		panel3.setConstraints("Center");
		var border4:TitledBorder = new TitledBorder();
		border4.setColor(new ASColor(0x0, 1));
		border4.setTitle("输出");
		border4.setPosition(1);
		border4.setAlign(AsWingConstants.LEFT);
		border4.setBeveled(true);
		border4.setRound(8);
		panel3.setBorder(border4);
		var layout5:BorderLayout = new BorderLayout();
		panel3.setLayout(layout5);
		
		scrollpane19 = new JScrollPane();
		scrollpane19.setLocation(new IntPoint(5, 22));
		scrollpane19.setSize(new IntDimension(490, 506));
		
		ta = new JTextArea();
		ta.setSize(new IntDimension(490, 506));
		
		panel21 = new JPanel();
		panel21.setLocation(new IntPoint(0, 562));
		panel21.setSize(new IntDimension(500, 38));
		panel21.setConstraints("South");
		var layout6:SoftBoxLayout = new SoftBoxLayout();
		layout6.setAxis(AsWingConstants.VERTICAL);
		layout6.setGap(4);
		panel21.setLayout(layout6);
		
		label22 = new JLabel();
		label22.setLocation(new IntPoint(5, 5));
		label22.setSize(new IntDimension(505, 17));
		label22.setText("地图生成器，用来根据flash生成的swf导出地图信息，存储到swf中。");
		label22.setHorizontalAlignment(AsWingConstants.LEFT);
		
		label23 = new JLabel();
		label23.setForeground(new ASColor(0xcc0000, 1));
		label23.setLocation(new IntPoint(5, 27));
		label23.setSize(new IntDimension(26, 17));
		label23.setText("注意:结果已自动保存到了剪切板");
		label23.setHorizontalAlignment(AsWingConstants.CENTER);
		
		panel49 = new JPanel();
		panel49.setLocation(new IntPoint(255, 0));
		panel49.setSize(new IntDimension(245, 600));
		var border7:TitledBorder = new TitledBorder();
		border7.setColor(new ASColor(0x0, 1));
		border7.setTitle("测试地图数据读入");
		border7.setPosition(1);
		border7.setBeveled(true);
		border7.setRound(8);
		panel49.setBorder(border7);
		var layout8:BorderLayout = new BorderLayout();
		layout8.setHgap(8);
		layout8.setVgap(8);
		panel49.setLayout(layout8);
		
		panel51 = new JPanel();
		panel51.setSize(new IntDimension(485, 59));
		panel51.setConstraints("North");
		var border9:TitledBorder = new TitledBorder();
		border9.setColor(new ASColor(0x0, 1));
		border9.setTitle("文件地址");
		border9.setPosition(1);
		border9.setBeveled(true);
		border9.setRound(8);
		panel51.setBorder(border9);
		
		tfIn = new JTextField();
		tfIn.setLocation(new IntPoint(5, 5));
		tfIn.setSize(new IntDimension(168, 21));
		tfIn.setColumns(20);
		
		btnIn = new JButton();
		btnIn.setLocation(new IntPoint(20, 5));
		btnIn.setSize(new IntDimension(31, 22));
		btnIn.setText("读入");
		
		panel52 = new JPanel();
		panel52.setSize(new IntDimension(495, 600));
		panel52.setConstraints("Center");
		var border10:TitledBorder = new TitledBorder();
		border10.setColor(new ASColor(0x0, 1));
		border10.setTitle("调试输出");
		border10.setPosition(1);
		border10.setBeveled(true);
		border10.setRound(8);
		panel52.setBorder(border10);
		var layout11:BorderLayout = new BorderLayout();
		panel52.setLayout(layout11);
		
		scrollpane57 = new JScrollPane();
		scrollpane57.setLocation(new IntPoint(5, 22));
		scrollpane57.setSize(new IntDimension(475, 461));
		
		taIn = new JTextArea();
		taIn.setLocation(new IntPoint(5, 5));
		taIn.setSize(new IntDimension(10, 21));
		taIn.setEditable(false);
		
		panel53 = new JPanel();
		panel53.setLocation(new IntPoint(0, 590));
		panel53.setSize(new IntDimension(495, 10));
		panel53.setConstraints("South");
		
		//component layoution
		append(panel48);
		append(panel49);
		
		panel48.append(panel9);
		panel48.append(panel3);
		panel48.append(panel21);
		
		panel9.append(tf);
		panel9.append(btn);
		panel9.append(separator17);
		panel9.append(label18);
		
		panel3.append(scrollpane19);
		
		scrollpane19.append(ta);
		
		panel21.append(label22);
		panel21.append(label23);
		
		panel49.append(panel51);
		panel49.append(panel52);
		panel49.append(panel53);
		
		panel51.append(tfIn);
		panel51.append(btnIn);
		
		panel52.append(scrollpane57);
		
		scrollpane57.append(taIn);
		
	}
	
	//_________getters_________
	
	
	
	public function getTf():JTextField{
		return tf;
	}
	
	public function getBtn():JButton{
		return btn;
	}
	
	
	
	
	
	public function getTa():JTextArea{
		return ta;
	}
	
	
	
	
	
	
	public function getTfIn():JTextField{
		return tfIn;
	}
	
	public function getBtnIn():JButton{
		return btnIn;
	}
	
	
	
	public function getTaIn():JTextArea{
		return taIn;
	}
	
	
	
}
}
